package com.zzb.orders.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzb.messagesdk.model.po.MqMessage;
import com.zzb.orders.model.dto.AddOrderDto;
import com.zzb.orders.model.dto.PayRecordDto;
import com.zzb.orders.model.po.XcOrders;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author zzb
 * @Date 2024/7/13 23:37
 * @Version 1.0
 * @description
 */
public interface OrderService extends IService<XcOrders> {
    PayRecordDto createOrder(String userId, AddOrderDto addOrderDto);
    PayRecordDto queryPayResult(String payNo);
    void paynotify(HttpServletRequest request, HttpServletResponse response);
    /**
     * 发送通知结果
     * @param mqMessage 消息
     */
    void notifyPayResult(MqMessage mqMessage);

    void requestpay(String payNo, HttpServletResponse response);
}
